<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('回访记录')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/mMailWF";

    $(function () {
        var options = {
            url: prefix + "/forShow/judgeListJson/"+[[${wfId}]],
            sortName: "myPkVal",
            detailUrl: prefix+"/forShow/judgeDetail/{id}",
            sortOrder: "desc",
            uniqueId: "myPkVal",
            modalName: "回访记录",
            columns: [{
                checkbox: true
            },
                {field: 'myPkVal', title: '用户编号', hidden: true,visible:false},
                {field: 'WfId', title: 'WfId', hidden: true,visible:false},
                {field: 'JudgeIP', title: '评价来源地址', align: 'center', sortable: true},
                {field: 'visitTime', title: '评价时间', align: 'left', halign: 'center', width: 80},
                {field: 'VisitPerson', title: '被访对象', align: 'center', sortable: true},
                {field: 'VstDeptName', title: '回访单位', align: 'center', sortable: true},
                {field: 'VstUserName', title: '回访人', align: 'left', halign: 'center'},
                {field: 'JudgeN', title: '满意度', align: 'center', sortable: true},
                {field: 'VstDesc', title: '回访意见', align: 'left', width: 110, halign: 'center'},
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-outline btn-xs " href="javascript:void(0)" onclick="$.operate.detail(\'' + row.myPkVal + '\',900,550)">查看</a> ');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });

</script>
</body>
</html>